﻿//双击事件
function CustomDbClick() {
    var recordID = myDataTable.getSelectedRows()[0];
    record = myDataTable.getRecord(recordID);
    document.getElementById("EditUIWindow3").src = "AutoEditUI.aspx?r=" + Math.random() + "&action=check&entity=" + const_EditEntity + "&id=" + record.getData(const_entityID);
    YAHOO.example.container.dialog5.show();
}
var formatText = function (elCell, oRecord, oColumn, sData) {
    if (sData.length > 39) {
        elCell.innerHTML = sData.substring(0, 39) + "..." + "<a href='javascript:CustomDbClick()'>详细</a>";
    }
    else {
        elCell.innerHTML = sData;
    }
};